
package com.trydofor.a9task.base.code.bean;

import com.trydofor.a9task.base.sys.bean.ActBeanRw;
import com.trydofor.aloe.encoding.BKDRHash;

/**
 * @author : Shi Rongjiu (www.trydofor.com)
 * @date : Nov 7, 2012
 */

public class CodeLangRw extends ActBeanRw implements CodeLang {
    
    private int    codeId;
    private int    language;
    private String codeText;
    private String codeInfo;
    
    public int getCodeId() {
        return codeId;
    }
    
    public String getCodeInfo() {
        return codeInfo;
    }
    
    public String getCodeText() {
        return codeText;
    }
    
    public int getLanguage() {
        return language;
    }
    
    public int hashCode() {
        return BKDRHash.hash(codeId, language);
    }
    
    public void setCodeId(int codeId) {
        this.codeId = codeId;
    }
    
    public void setCodeInfo(String codeInfo) {
        this.codeInfo = codeInfo;
    }
    
    public void setCodeText(String codeText) {
        this.codeText = codeText;
    }
    
    public void setLanguage(int langId) {
        this.language = langId;
    }
    
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("codeId=").append(codeId);
        sb.append(",language=").append(language);
        sb.append(",codeText=").append(codeText);
        sb.append(",codeInfo=").append(codeInfo);
        return sb.toString();
    }
}
